package com.cjw.campus.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.StudentTable;
import com.cjw.campus.system.mapper.StudentTableMapper;
import com.cjw.campus.system.service.IStudentTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjw.campus.system.vo.StudentTableVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学生表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2022-12-04
 */
@Service
public class StudentTableServiceImpl extends ServiceImpl<StudentTableMapper, StudentTable> implements IStudentTableService {

    @Override
    public IPage<StudentTableVO> listPageByStudentNumberAndName(IPage<StudentTableVO> page, String studentName, Integer studentNumber) {
        return baseMapper.listPageByStudentNumberAndName(page, studentName, studentNumber);
    }

    @Override
    public StudentTableVO listPageByStudentId(Long studentId) {
        return baseMapper.listPageByStudentId(studentId);
    }
}
